<% if(!session.language){
  response.sendRedirect(request.getContextPath()+"/access/login");
}%>

<%if(!session.language){ session.language="sv"}%>
<% def a = session.access
if(a){
  a.refresh()
  if(!a.hasDevAuth()){
    response.sendRedirect(request.getContextPath()+"/search/show");
  }
}
%>
<html>
    <head>
        <title> /!\ Welcome to MegaSoft ERP SYSTEM ! Youha !</title>
		<meta name="layout" content="start" />
    </head>
    <body>
        <h1 style="margin-left:20px;">MegaSoft ERP System !</h1>
        
        <div class="dialog" style="margin-left:20px;width:60%;">
          <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
          </g:if>
          <ul>
            <g:each var="c" in="${grailsApplication.controllerClasses.sort {it.fullName}}">
                  <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
            </g:each>
          </ul>
        </div>
    </body>
</html>